package com.mqz.zebraEcommerce.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mqz.zebraEcommerce.commodity.entity.AttrAttrGroupRelationEntity;
import com.mqz.zebraEcommerce.common.utils.PageUtils;
import com.mqz.zebraEcommerce.commodity.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性表
 *
 * @author mqz
 * @email 952905931@qq.com
 * @date 2025-03-04 13:22:18
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long categoryId);

    PageUtils querySaleAttrPage(Map<String, Object> params, Long categoryId);

    PageUtils queryValidRelationAttrPage(Map<String, Object> params, Long attrGroupId);

    void saveAll(AttrEntity attrEntity);

    void updateAll(AttrEntity attr);

    void deleteAll(Long[] attrIds);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    void deleteRelation(AttrAttrGroupRelationEntity[] attrAttrGroupRelationEntities);

}

